/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsLoaiSanPhamBL
/// </summary>
namespace SES.CMS.BL 
{
    public class cmsLoaiSanPhamBL 
    {
    	#region Private Variables
		cmsLoaiSanPhamDAL objcmsLoaiSanPhamDAL;
		#endregion
		
        #region Public Constructors
        public cmsLoaiSanPhamBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsLoaiSanPhamDAL=new cmsLoaiSanPhamDAL();
        }
        #endregion       

        #region Public Methods
        public int Insert(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
            return objcmsLoaiSanPhamDAL.Insert(objcmsLoaiSanPhamDO);
        }

        public int Update(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
             return objcmsLoaiSanPhamDAL.Update(objcmsLoaiSanPhamDO);

        }

        public int Delete(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
             return objcmsLoaiSanPhamDAL.Delete(objcmsLoaiSanPhamDO);

        }

         public int DeleteAll()
        {
             return objcmsLoaiSanPhamDAL.DeleteAll();
        }

        public cmsLoaiSanPhamDO Select(cmsLoaiSanPhamDO objcmsLoaiSanPhamDO)
        {
            return objcmsLoaiSanPhamDAL.Select(objcmsLoaiSanPhamDO);
        }

        public ArrayList SelectAll1( )
        {
         return objcmsLoaiSanPhamDAL.SelectAll1();
        }
        
        public DataTable SelectAll(int id)
        {
         return objcmsLoaiSanPhamDAL.SelectAll(id);
        }
        public DataTable SelectLoaiSanPham_ToMenu(int from, int to)
        {
            return objcmsLoaiSanPhamDAL.SelectLoaiSanPham_ToMenu(from, to);
        }
        public DataTable SelectByPK(int id)
        {
            return objcmsLoaiSanPhamDAL.SelectByPK(id);
        }
        public DataTable SelectParentIDToTable(int LoaiSPID, int Orderby)
        {
            return objcmsLoaiSanPhamDAL.SelectParentIDToTable(LoaiSPID, Orderby);
        }
        public DataTable SelectLoaiSanPhamToMainMenu()
        {
            return objcmsLoaiSanPhamDAL.SelectLoaiSanPhamToMainMenu();
        }
        public DataTable SelectLoaiSanPham_ToChildMenu(int ParentID, int Rootlevel)
        {
            return objcmsLoaiSanPhamDAL.SelectLoaiSanPham_ToChildMenu(ParentID, Rootlevel);
        }
        public DataTable SelectLoaiSanPham_ToLeftMenu(string RelationValue, int Rootlevel)
        {
            return objcmsLoaiSanPhamDAL.SelectLoaiSanPham_ToLeftMenu(RelationValue, Rootlevel);
        }
        public DataTable SelectLoaiSanPham_ToLeftMenuLevel(int ParentID, string RelationValue, int Rootlevel)
        {
            return objcmsLoaiSanPhamDAL.SelectLoaiSanPham_ToLeftMenuLevel(ParentID, RelationValue, Rootlevel);
        }
        public int GetParentID(int loaiSanPhamID)
        {
            return objcmsLoaiSanPhamDAL.GetParentID(loaiSanPhamID);
        }
        public DataTable SelectParentID(int loaiSanPhamID)
        {
            return objcmsLoaiSanPhamDAL.SelectParentID(loaiSanPhamID);
        }
        public DataTable SelectOne(cmsLoaiSanPhamDO objCat)
        {
            return objcmsLoaiSanPhamDAL.SelectOne(objCat);
        }
        public DataTable SelectAllLoaiSanPham_ToLeftMenu(int Rootlevel)
        {
            return objcmsLoaiSanPhamDAL.SelectAllLoaiSanPham_ToLeftMenu(Rootlevel);
        }
#endregion          
    
    }

}
